import requests
import os,json
from goods_feedback.config.setting import *
from goods_feedback.public.get_yaml import doYaml
from goods_feedback.public.h5_header import *
from goods_feedback.public.getlogging import Logger

#filename=os.path.basename(__file__)  #获取对应目录下的文件名称
#logging=Logger(filename).getlog()

rs=doYaml.get_data(os.path.join(data_path,'usergoods.yaml'))
base_url='{0}{1}'.format(h5_url,rs['path'])
method=rs['method']
payload=rs['data']
headers=form_headers

def search_user_goods():
    re=requests.request(method,base_url,headers=headers,params=payload).json()
    #print(re)
    return re

#search_user_goods()